/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-10-13 15:26:17
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-10-19 11:28:12
 */
const state = {
    k_token: "",
    a_tokenInfo: "",
    userInfo: "",
    registerSuccPhone: "",
    // 自评
    existExam: null,
    checkType: null
};

const mutations = {
    //第二参数为传值，可不填
    SETTING_K_TOKEN: (state, k_token) => {
        state.k_token = k_token;
    },
    SETTING_A_TOKENINFO: (state, a_tokenInfo) => {
        state.a_tokenInfo = a_tokenInfo;
    },
    SETTING_USERINFO: (state, userInfo) => {
        state.userInfo = userInfo;
    },
    SETTING_RegisterSuccPhone: (state, registerSuccPhone) => {
        state.registerSuccPhone = registerSuccPhone;
    },
    SETTING_LOFINOUT: state => {
        state.k_token = "";
        state.a_tokenInfo = "";
        state.userInfo = "";
        state.registerSuccPhone = "";
    },
    SETTING_EXISTEXAM: (state, existExam) => {
        state.existExam = existExam;
    },
    SETTING_CHECKTYPE: (state, checkType) => {
        state.checkType = checkType;
    }
};

export default {
    namespaced: true,
    state,
    mutations
};
